<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<base href="<%=basePath%>">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<LINK href="css/TopMenu.css" type=text/css rel=stylesheet>
<link rel="stylesheet" type="text/css" href="css/style.css">
<SCRIPT language=javascript>
	function logoutUser(){
		if(confirm("您确定要退出吗？")) {
			top.location.href="<%=basePath%>admin/login!outlogin.action";
		}
		
	}
	function exitUser(){	
		if("${username}"==""||"${username}"=="null"){
			alert("请重新登录!");
			top.location.href="<%=basePath%>admin/login!outlogin.action";
		}
	}
</SCRIPT>
</HEAD>
<BODY style="margin:0 0 0 0;" onload="exitUser();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  	<td width="507px" height="65px"  background="images/banner_01.gif">&nbsp;</td>
    <td  valign="top" background="images/banner_02.gif">
		
    </td>
    <td width="507px"  background="images/banner_03.gif" valign="top">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="27px">
				&nbsp;
				</td>
				<td height="27px" width="29px" background="images/admin_02x.gif">
				&nbsp;
				</td>
				<td height="27px" width="150px" background="images/admin_03x.gif" align="right">
					&nbsp;${username}&nbsp;&nbsp;|&nbsp;&nbsp;帮助&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:logoutUser();">退出</a>&nbsp;&nbsp;
				</td>
				<td height="27px" width="30px" background="images/admin_03x.gif">
				&nbsp;
				</td>
			</tr>
			<tr>
				<td>
					&nbsp;
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					&nbsp;
				</td>
				<td>
					&nbsp;
				</td>
			</tr>
		</table>
    </td>
  </tr>
  <tr>
    <td height="9px" background="images/admin_01.gif" colspan="3" >
	</td>
  </tr>
</table>
</BODY>
</HTML>
